package com.cssl.domain;

import java.io.Serializable;

public class Page implements Serializable {
    /**
     * 当前页数
     */
    Integer pageIndex;
    /**
     * 每页显示数量
     *
     *
     *
     */
    Integer pageSize;
    /**
     * 总页数
     */
    Integer totalPage;
    /**
     * 总记录数
     */
    Integer totalCount;

    @Override
    public String toString() {
        return "Page{" +
                "pageIndex=" + pageIndex +
                ", pageSize=" + pageSize +
                ", totalPage=" + totalPage +
                ", totalCount=" + totalCount +
                '}';
    }

    public Page() {

    }

    public Page(Integer pageIndex, Integer pageSize, Integer totalPage, Integer totalCount) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.totalPage = totalPage;
        this.totalCount = totalCount;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }
}
